#ifndef MONTHASSESSMENTVIEW_H
#define MONTHASSESSMENTVIEW_H

#include <QWidget>
#include <QTableWidget>
#include <QDateEdit>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QComboBox>
#include "adminmanager.h"

class MonthAssessmentView : public QWidget
{
    Q_OBJECT
public:
    explicit MonthAssessmentView(QWidget *parent = nullptr);

    // 设置管理员管理器
    void setAdminManager(AdminManager *manager);

    // 刷新考核数据
    void refreshAssessmentData();
    void refreshDepartmentList();
signals:

private slots:
    // 查询按钮点击事件
    void onQueryButtonClicked();

private:
    // 初始化UI
    void initUI();

    // 刷新部门列表


    // 管理员管理器指针
    AdminManager *m_adminManager;

    // UI组件
    QTableWidget *m_assessmentTable;
    QComboBox *m_monthComboBox;
    QComboBox *m_deptComboBox;
    QPushButton *m_queryButton;
};

#endif // MONTHASSESSMENTVIEW_H
